home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / tabdlg2.zip / MFC / TESTVIEW.H < prev   
C/C++ Source or Header  |  1994-05-04  |  1KB  |  44 lines

  1. // testview.h : interface of the CTestView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CTestView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CTestView();
  9.     DECLARE_DYNCREATE(CTestView)
  10.  
  11. // Attributes
  12. public:
  13.     CTestDoc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Implementation
  19. public:
  20.     virtual ~CTestView();
  21.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  22. #ifdef _DEBUG
  23.     virtual void AssertValid() const;
  24.     virtual void Dump(CDumpContext& dc) const;
  25. #endif
  26.  
  27. protected:
  28.  
  29. // Generated message map functions
  30. protected:
  31.     //{{AFX_MSG(CTestView)
  32.         // NOTE - the ClassWizard will add and remove member functions here.
  33.         //    DO NOT EDIT what you see in these blocks of generated code !
  34.     //}}AFX_MSG
  35.     DECLARE_MESSAGE_MAP()
  36. };
  37.  
  38. #ifndef _DEBUG  // debug version in testview.cpp
  39. inline CTestDoc* CTestView::GetDocument()
  40.    { return (CTestDoc*)m_pDocument; }
  41. #endif
  42.  
  43. /////////////////////////////////////////////////////////////////////////////
  44.